local Class = require('lua.lang.Class')
local Variable = require('lua.parser.Variable')

--- @class GlobalVar : Variable
local GlobalVar = Class {
	__extends = Variable
}

--- @param scope Scope
--- @param name string
--- @return GlobalVar
function GlobalVar:new(scope, name)
	--- @type GlobalVar
	local o = {}
	o.scope = scope
	o.name = name
	o.isGlobal = true
	o.canRename = false
	o.references = 1
	return setmetatable(o, GlobalVar)
end

return GlobalVar